using Microsoft.Xna.Framework;

namespace GameFramework.Extensions
{
    /// <summary>
    /// Useful extension methods for Point.
    /// </summary>
    public static class PointExtensions
    {
        /// <summary>
        /// Convert a point into a Vector2.
        /// </summary>
        /// <param name="point">The point.</param>
        /// <returns>The vector.</returns>
        public static Vector2 ToVector2(this Point point)
        {
            return new Vector2(point.X, point.Y);
        }
    }
}
